<html>
<head><meta charset="utf-8"><title>Symbol Intern · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html">Symbol Intern</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216738810"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Symbol%20Intern/near/216738810" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html#216738810">(Nov 14 2020 at 16:56)</a>:</h4>
<p>Hi, sorry I read <code>Memory Management in Rustc</code> section in docs, but I still don't get how we use Symbol, I need to know more about Symbol and interning, is there any document that I can read about it?</p>



<a name="216739122"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Symbol%20Intern/near/216739122" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html#216739122">(Nov 14 2020 at 17:04)</a>:</h4>
<p>People here can probably help you. What do you need to do with <code>Symbol</code>s?</p>



<a name="216739446"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Symbol%20Intern/near/216739446" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html#216739446">(Nov 14 2020 at 17:12)</a>:</h4>
<p>I am working on a parser issue but I couldn't fix it with debugging, I couldn't find the correct solution, so I decided to read about how lexer and parser work from scratch, to also learn compiler, then through the lexing I see that we use Symbol structure that I could not understand it completely, how it works and why we use it exactly</p>



<a name="216739449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Symbol%20Intern/near/216739449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html#216739449">(Nov 14 2020 at 17:12)</a>:</h4>
<p><a href="https://en.wikipedia.org/wiki/String_interning">https://en.wikipedia.org/wiki/String_interning</a></p>



<a name="216739462"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Symbol%20Intern/near/216739462" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html#216739462">(Nov 14 2020 at 17:13)</a>:</h4>
<p>thanks Joshua</p>



<a name="216739467"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Symbol%20Intern/near/216739467" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html#216739467">(Nov 14 2020 at 17:14)</a>:</h4>
<p>are you interested in making a PR to add that to the dev-guide? :)</p>



<a name="216739510"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Symbol%20Intern/near/216739510" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hossein dindar <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Symbol.20Intern.html#216739510">(Nov 14 2020 at 17:14)</a>:</h4>
<p>yeah sure why not</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>